﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FolderNavigatorTest
{
    class Program
    {
        static void Main(string[] args)
        {
            demo.FolderNavigator nav = new demo.FolderNavigator("1");
            nav.Enter("2");
            nav.Enter("3");
            nav.Enter("4");

            Console.WriteLine(nav.Path);

            Console.WriteLine(nav.Prev());
            Console.WriteLine(nav.Prev());
            Console.WriteLine(nav.Prev());

            Console.WriteLine("....");
            Console.WriteLine(nav.Next());
            Console.WriteLine(nav.Next());

            nav.Enter("5");
            Console.WriteLine(nav.Next());
        }
    }
}
